<?php


namespace common\components;


class Serializer extends \yii\rest\Serializer
{
    public function serializeDataProvider($dataProvider)
    {
        $result = parent::serializeDataProvider($dataProvider);

        unset($result[$this->linksEnvelope]);

        return $result;
    }
}